package com.dream.wukong.common.core.interfaces.email;

import org.springframework.mail.MailException;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: wuyichao
 * @Description:
 * @Date: Created in 10:58 2018/9/18.
 * @Modified:
 */
public interface IMailMessage extends Serializable {

    public void setFrom(String from) throws MailException;

    public void setReplyTo(String replyTo) throws MailException;

    public void setTo(String to) throws MailException;

    public void setTo(String[] to) throws MailException;

    public void setCc(String cc) throws MailException;

    public void setCc(String[] cc) throws MailException;

    public void setBcc(String bcc) throws MailException;

    public void setBcc(String[] bcc) throws MailException;

    public void setSentDate(Date sentDate) throws MailException;

    public void setSubject(String subject) throws MailException;

    public void setText(String text) throws MailException;
}
